﻿<%@ Page Title="Alterar Senha" Language="C#" MasterPageFile="~/MasterPageSERIX.Master"
    AutoEventWireup="true" CodeBehind="AlterarSenha.aspx.cs" Inherits="SERIX.AlterarSenha" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width: 97%;" border="0" cellspacing="0" cellpadding="4" align="center"
        class="grid_titulo_right">
        <tr>
            <td align="left" colspan="2">
                <asp:Label ID="lblAlteraSenha" runat="server" Style="font-family: Arial, Helvetica, sans-serif;
                    font-weight: 700; color: #000000; font-size: large" Text="Alteração de Senha"></asp:Label>
                <hr class="linhahorizontal" style="width: 750px" />
            </td>
        </tr>
        <tr>
            <td class="erro" colspan="2">
                <asp:Label ID="lblErro" runat="server" Text="Erro:" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 265px">
                <asp:Label ID="lblSenhaAtual" runat="server" Text="Senha Atual"></asp:Label>
            </td>
            <td class="grid_celula">
                <asp:TextBox ID="txtSenhaAtual" runat="server" Width="180px" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvSenhaAtual" runat="server" ControlToValidate="txtSenhaAtual"
                    CssClass="erro" ErrorMessage="* Informe a Senha Atual" Style="position: static"
                    Width="157px"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 265px">
                <asp:Label ID="lblNovaSenha" runat="server" Text="Nova Senha"></asp:Label>
            </td>
            <td class="grid_celula">
                <asp:TextBox ID="txtNovaSenha" runat="server" TextMode="Password" Width="180px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvNovaSenha" runat="server" ControlToValidate="txtNovaSenha"
                    CssClass="erro" ErrorMessage="* Informe a Nova Senha" Style="position: static"
                    Width="157px"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 265px">
                <asp:Label ID="lblConfirmarNovaSenha" runat="server" Text="Confirmar Nova Senha"></asp:Label>
            </td>
            <td class="grid_celula">
                <asp:TextBox ID="txtConfirmarNovaSenha" runat="server" TextMode="Password" Width="180px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvCNovaSenha" runat="server" CssClass="erro" ErrorMessage="* Informe a Confirmação da Nova Senha"
                    Style="position: static" Width="201px" ControlToValidate="txtConfirmarNovaSenha"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <br />
                <asp:Button ID="btn_Ok" runat="server" OnClick="btn_Ok_Click" Style="font-weight: 700"
                    Text="Ok" Width="80px" />
                <asp:Button ID="btn_Cancelar" runat="server" OnClick="btn_Cancelar_Click" Style="font-weight: 700"
                    Text="Cancelar" Width="80px" CausesValidation="False" />
            </td>
        </tr>
    </table>

    <script type="text/javascript">

        $(document).ready(function IniciarEventos() {
            carregaAltSenha();

        });

        function carregaAltSenha() {
            $('[id$=txtSenhaAtual]').val("");
            $('[id$=txtSenhaAtual]').focus();
        }


    </script>

</asp:Content>
